<#if packageStyle == "service">
package ${bussPackage}.${entityPackage}.entity;
<#else>
package ${definePackage};
</#if>

import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.xml.soap.Text;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;

/**   
 * @Title: Entity
 * @Description: ${ftl_description}
 * @author root
 * @date ${.now}
 * @version V1.0   
 *
 */
@Entity
@Table(name = "${tableName}", schema = "")
public class ${entityName} implements java.io.Serializable {
	<#list columns as po>
	/**${po.comments}*/
	<#if po.code ?capitalize == pk_table_Id ? capitalize>
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	</#if>
	@Column(name ="${fieldMeta[po.code]}",nullable=<#if po.isNull == 'Y'>true<#else>false</#if><#if po.pointLength != 0>,scale=${po.pointLength}</#if><#if po.type!='java.sql.Blob'><#if po.length !=0>,length=${po.length?c}</#if></#if>)
	<#--update-start--Author:luobaoli  Date:20150609 for：将数据库中blob类型对应为byte[]-->
	private <#if po.type=='java.sql.Blob'>byte[]<#else>${po.type}</#if> ${po.code};
	<#--update-end--Author:luobaoli  Date:20150609 for：将数据库中blob类型对应为byte[]-->
	</#list>
	
	public ${entityName}Entity(){
		super();
	}
	
	public ${entityName}Entity(<#list columns as po><#if po.type=='java.sql.Blob'>byte[]<#else>${po.type}</#if> ${po.code}<#if po_index < (columns?size -1)>,</#if></#list>){
		super();
		<#list columns as po>
		this.${po.code} = ${po.code};
		</#list>
	}
	
	
	<#list columns as po>
	/**
	 *方法: 取得${po.comments}
	 *@return: ${po.name}  ${po.comments}
	 */
	
	<#--update-start--Author:luobaoli  Date:20150609 for：将数据库中blob类型对应为byte[]，且去掉length属性-->
	public <#if po.type=='java.sql.Blob'>byte[]<#else>${po.type}</#if> get${po.code?cap_first}(){
		return this.${po.code};
	}

	/**
	 *方法: 设置${po.comments}
	 *@param: ${po.name}  ${po.comments}
	 */
	public void set${po.code?cap_first}(<#if po.type=='java.sql.Blob'>byte[]<#else>${po.type}</#if> ${po.code}){
		this.${po.code} = ${po.code};
	}
	<#--update-end--Author:luobaoli  Date:20150609 for：将数据库中blob类型对应为byte[]，且去掉length属性-->
	</#list>
}
